package com.producer.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class UserEneity implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    // 用户名
    private String username;
    // 密码
    private String password;

    // 姓名
    private String phone;
    private int uStatus;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //邮箱
    private String email;



}
